import {createStore} from 'redux'  //引入createStore  ，这个可以用来生成store
import {reducer} from './reducer';   //引入总reducer里的所有方法
const store = createStore(reducer)   //创建一个仓库
export default store    //导出state